Image
@Serializable
@SerialName(value = "image" )
Image content — distinct from generic File so multimodal models (vision providers, image-generation tools) get a typed variant. Per historical parity gap #39, mirrors v6's ImagePart. mediaType is the MIME type (e.g. image/png); base64 is the raw image bytes encoded.
On-device targets (Gemma 4 E2B text-only for now) never emit this — added for forward parity with v6 multimodal providers the port might back later (vision-capable LiteRT-LM bundles, cloud Anthropic / OpenAI).
Constructors
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Remote (or data) URL for the image, when not provided inline as base64. Mirrors v6's image: DataContent | URL. Resolve with convertToLanguageModelPrompt for providers that don't accept URLs.